package icu.zlz.emqx.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import icu.zlz.common.core.annotation.Excel;
import icu.zlz.common.core.web.domain.BaseEntity;

/**
 * xx对象 iot_devices_topic
 * 
 * @author zangs
 * @since 2025-01-02
 */
public class IotDevicesTopic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long rowId;

    /** 设备Id */
    @Excel(name = "设备Id")
    private Long deviceId;

    /** 主题Id */
    @Excel(name = "主题Id")
    private Long topicId;

    /** 是否允许 */
    @Excel(name = "是否允许")
    private Boolean permission;

    /** 动作类型 */
    @Excel(name = "动作类型")
    private String action;

    public void setRowId(Long rowId) 
    {
        this.rowId = rowId;
    }

    public Long getRowId() 
    {
        return rowId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }
    public void setPermission(Boolean permission) 
    {
        this.permission = permission;
    }

    public Boolean getPermission() 
    {
        return permission;
    }
    public void setAction(String action) 
    {
        this.action = action;
    }

    public String getAction() 
    {
        return action;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rowId", getRowId())
            .append("deviceId", getDeviceId())
            .append("topicId", getTopicId())
            .append("permission", getPermission())
            .append("action", getAction())
            .toString();
    }
}
